package com.zhejiangzhengyuan.municipal_common.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * GIS数据库中道路表（一路一档建设）
 * </p>
 *
 * @author linju
 * @since 2019-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="RoadGis对象", description="GIS数据库中道路表（一路一档建设）")
public class RoadGis extends Model<RoadGis> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id",type = IdType.AUTO)
    @ExcelProperty(value = "自增主键")
    private Long id;

    @ApiModelProperty(value = "道路编码")
    @ExcelProperty(value = "code")
    private String code;

    @ApiModelProperty(value = "道路名称")
    @ExcelProperty(value = "Sname")
    private String name;

    @ApiModelProperty(value = "道路走向，文字描述")
    @ExcelProperty(value = "direction")
    private String direction;

    @ApiModelProperty(value = "道路起点坐标")
    @ExcelProperty(value = "道路起点坐标")
    private String startPoint;

    @ApiModelProperty(value = "道路终点坐标")
    @ExcelProperty(value = "道路终点坐标")
    private String endPoint;

    @ApiModelProperty(value = "道路起点位置相接道路名称")
    @ExcelProperty(value = "road_start")
    private String roadStart;

    @ApiModelProperty(value = "道路终点位置相接道路名称")
    @ExcelProperty(value = "road_end")
    private String roadEnd;

    @ApiModelProperty(value = "道路目前宽度")
    @ExcelProperty(value = "width")
    private String width;

    @ApiModelProperty(value = "道路断面形式，文字描述")
    @ExcelProperty(value = "section")
    private String section;

    @ApiModelProperty(value = "道路长度")
    @ExcelProperty(value = "length")
    private String length;

    @ApiModelProperty(value = "道路等级，字典条目项表表示")
    @ExcelProperty(value = "Slevel")
    private String level;

    @ApiModelProperty(value = "道路机动车道面积")
    @ExcelProperty(value = "motor_vehi")
    private String motorVehicleArea;

    @ApiModelProperty(value = "道路机动车道材质")
    @ExcelProperty(value = "motor_ve_1")
    private String motorVehicleMaterial;

    @ApiModelProperty(value = "道路非机动车道面积")
    @ExcelProperty(value = "non_motor_")
    private String nonMotorVehicleArea;

    @ApiModelProperty(value = "道路非机动车道材质")
    @ExcelProperty(value = "non_motor1")
    private String nonMotorVehicleMaterial;

    @ApiModelProperty(value = "道路人行道面积")
    @ExcelProperty(value = "sidewalk_a")
    private String sidewalkArea;

    @ApiModelProperty(value = "道路人行道材质")
    @ExcelProperty(value = "sidewalk_m")
    private String sidewalkMaterial;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "remark")
    private String remark;

    @ApiModelProperty(value = "记录创建时间")
    private Timestamp createTime;

    @ApiModelProperty(value = "记录更新时间")
    private Timestamp updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
